@echo off
echo ===================================================
echo        FinData and PandaFactor Integration
echo ===================================================

:: Start FinData main system
echo [1/3] Starting FinData main system...
start cmd /k "title FinData System && cd /d %~dp0 && start.bat"
timeout /t 5 /nobreak > nul

:: Start PandaFactor
echo [2/3] Starting PandaFactor...
start cmd /k "title PandaFactor && cd /d %~dp0 && start_panda_factor.bat"
timeout /t 10 /nobreak > nul

:: Start Nginx proxy
echo [3/3] Starting Nginx proxy...
call "%~dp0start_nginx.bat"

echo.
echo ===================================================
echo        All services started
echo ===================================================
echo You can now access the complete system at http://localhost
echo.
echo Note:
echo  - Do not close the command windows, or services will stop
echo  - To stop all services, run stop_all.bat
echo ===================================================

pause 